﻿Public Class FormMain

    
    Private Sub EmyployeeToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EmyployeeToolStripMenuItem.Click
        FormEmployee.MdiParent = Me
        FormEmployee.Show()
        FormEmployee.WindowState = FormWindowState.Maximized
    End Sub

    Private Sub OTToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OTToolStripMenuItem.Click
        FormOverTime.MdiParent = Me
        FormOverTime.Show()
        FormOverTime.WindowState = FormWindowState.Maximized
    End Sub

    Private Sub SalaryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SalaryToolStripMenuItem.Click
        FormSalary.MdiParent = Me
        FormSalary.Show()
        FormSalary.WindowState = FormWindowState.Maximized
    End Sub

    Private Sub អនកបរបរសToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles អនកបរបរសToolStripMenuItem.Click
        FormControl_Panel.MdiParent = Me
        FormControl_Panel.Show()
        FormControl_Panel.WindowState = FormWindowState.Maximized

    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        lblDate.Text = My.Computer.Clock.LocalTime.Date.ToLongDateString
    End Sub

    Private Sub FormMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Timer1.Start()
    End Sub

    Private Sub បតកពយទរToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles បតកពយទរToolStripMenuItem.Click

    End Sub

    Private Sub បតកមមវធToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles បតកមមវធToolStripMenuItem.Click
        Me.Close()
    End Sub

    Private Sub អវតតមនបគគលកToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles អវតតមនបគគលកToolStripMenuItem.Click
        FormAbsent.MdiParent = Me
        FormAbsent.Show()
        FormAbsent.WindowState = FormWindowState.Maximized
    End Sub

    Private Sub អនកបគគលToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles អនកបគគលToolStripMenuItem.Click
        FormHistoryEmp.MdiParent = Me
        FormHistoryEmp.Show()
        FormHistoryEmp.WindowState = FormWindowState.Maximized
    End Sub

    Private Sub បរកខToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles បរកខToolStripMenuItem.Click
        FormHistorySalary.MdiParent = Me
        FormHistorySalary.Show()
        FormHistorySalary.WindowState = FormWindowState.Maximized
    End Sub

    Private Sub ករថមមងToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ករថមមងToolStripMenuItem.Click
        FormHistoryOT.MdiParent = Me
        FormHistoryOT.Show()
        FormHistoryOT.WindowState = FormWindowState.Maximized
    End Sub

    Private Sub បតToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles បតToolStripMenuItem.Click

    End Sub

    Private Sub អពToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles អពToolStripMenuItem.Click
        FormAbout.MdiParent = Me
        FormAbout.Show()
        FormAbout.WindowState = FormWindowState.Maximized
    End Sub
End Class